-- GENERATED SPELL FOR [Risen Drakkari Soulmage] --


function spell0_26636(pUnit, Event) --@Blood Siphon,Self--
pUnit:FullCastSpellOnTarget(49701,pUnit)
pUnit:RegisterEvent('Sorts_26636', 624, 1)
end

function spell1_26636(pUnit, Event) --@Blood Siphon,Self--
pUnit:FullCastSpellOnTarget(59015,pUnit)
pUnit:RegisterEvent('Sorts_26636', 622, 1)
end

function spell2_26636(pUnit, Event) --@Heal,Self--
pUnit:FullCastSpellOnTarget(47668,pUnit)
pUnit:RegisterEvent('Sorts_26636', 500, 1)
end

function spell3_26636(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(35011,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26636', 2000, 1)
end

function spell4_26636(pUnit, Event) --@Shadow Blast,n/a--
pUnit:FullCastSpellOnTarget(49696,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26636', 1500, 1)
end

function spell5_26636(pUnit, Event) --@Shadow Blast,n/a--
pUnit:FullCastSpellOnTarget(59013,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26636', 1500, 1)
end

function spell6_26636(pUnit, Event) --@Shadow Void,n/a--
pUnit:FullCastSpellOnTarget(55847,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26636', 10000, 1)
end

function spell7_26636(pUnit, Event) --@Shadow Void,n/a--
pUnit:FullCastSpellOnTarget(59014,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26636', 10000, 1)
end

function Sorts_26636(pUnit, Event)
local choix_sorts_26636 = math.random(0, 7)
if choix_sorts_26636 == 0 then
pUnit:RegisterEvent('spell0_26636', 1, 1)
end
if choix_sorts_26636 == 1 then
pUnit:RegisterEvent('spell1_26636', 1, 1)
end
if choix_sorts_26636 == 2 then
pUnit:RegisterEvent('spell2_26636', 1, 1)
end
if choix_sorts_26636 == 3 then
pUnit:RegisterEvent('spell3_26636', 1, 1)
end
if choix_sorts_26636 == 4 then
pUnit:RegisterEvent('spell4_26636', 1, 1)
end
if choix_sorts_26636 == 5 then
pUnit:RegisterEvent('spell5_26636', 1, 1)
end
if choix_sorts_26636 == 6 then
pUnit:RegisterEvent('spell6_26636', 1, 1)
end
if choix_sorts_26636 == 7 then
pUnit:RegisterEvent('spell7_26636', 1, 1)
end
end

function mob26636_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26636', math.random(1500, 3000), 1)
end

function mob26636_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26636_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26636_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26636, 1, 'mob26636_Action')
RegisterUnitEvent(26636, 2, 'mob26636_Leave')
RegisterUnitEvent(26636, 3, 'mob26636_Kill')
RegisterUnitEvent(26636, 4, 'mob26636_Die')
